package com.joey.concurrency.example.immutable;


import com.google.common.collect.Maps;
import lombok.extern.slf4j.Slf4j;

import java.util.Map;

/**
 * @Author hyy
 **/
@Slf4j
public class ImmutableExample {

    private final static Integer a = 1;
    private final static String b = "info";
    private final static Map<Integer,Integer> map = Maps.newHashMap();



    static {
        map.put(1,2);
        map.put(3,4);
        map.put(5,6);
    }

    private void test(final int i){
//        i = 2;
    }


    public static void main(String[] args) {
//        map = Maps.newHashMap();
        map.put(1,7);
        log.info("{}",map.get(1));
    }
}
